/**
 *
 */
Ext.define('vacake.view.category.AllList', {
    extend: 'Ext.Container',
    xtype: 'allList',
    config: {
        style:'background:#EEEAE0',
        layout: "card",
        items: [
               {
                docked: 'top',
                xtype: 'titlebar',
                id: 'alltitle',
                items: [
                    {
                        text: '返回',
                        ui: 'action-back',
                        handler: function () {
                            var backid = Ext.Viewport.getInnerItems().length - 2;
                            Ext.Viewport.remove(this.up('allList'), true);
                            Ext.Viewport.setActiveItem(backid);
                        }
                    }
                ]
            },
              {
                xtype: 'tabpanel',
                cls: 'x-container1',
                items: [{
                        xtype: 'priceList',
                        title: '价格'
                    }, {
                        xtype: 'popularityList',
                        title: '人气'
                    }, {
                        xtype: 'sellList',
                        title: '销售'
                    }, {
                        xtype: 'discountList',
                        title: '折扣'
                    }
                ]
            }
        ],
        listeners: {
            painted: function() {
                Ext.Viewport.unmask();
            },  
            back: function () {
                var backid = Ext.Viewport.getInnerItems().length - 2;
                Ext.Viewport.remove(Ext.Viewport.getActiveItem(), true);
                Ext.Viewport.setActiveItem(backid);
            }
        }
    }

});